package com.sky.task;/*
 *   sky-take-out
 *   com.sky.task
 *
 *   description:
 *   @data 2025/4/22     下午11:10
 *   @author 凉风
 */

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@Slf4j
public class Mytask {

    //@Scheduled(cron = "0/2 * * * * ?")
    public void task(){
        log.info("定时任务执行了:{}", LocalDateTime.now());
    }
}
